home *** CD-ROM | disk | FTP | other *** search
/ Stone Design / Stone Design.iso / Stone_Friends / Wave / WavesWorld / Source / Libraries / tcl7.4b3 / doc / unknown.n < prev    next >
Encoding:
Text File  |  1994-12-17  |  1.5 KB  |  43 lines

  1. '\"
  2. '\" Copyright (c) 1993 The Regents of the University of California.
  3. '\" Copyright (c) 1994 Sun Microsystems, Inc.
  4. '\"
  5. '\" See the file "license.terms" for information on usage and redistribution
  6. '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  7. '\" 
  8. '\" @(#) unknown.n 1.3 94/12/17 16:19:07
  9. '\" 
  10. .so man.macros
  11. .HS unknown tcl
  12. .BS
  13. '\" Note:  do not modify the .SH NAME line immediately below!
  14. .SH NAME
  15. unknown \- Handle attempts to use non-existent commands
  16. .SH SYNOPSIS
  17. \fBunknown \fIcmdName \fR?\fIarg arg ...\fR?
  18. .BE
  19.  
  20. .SH DESCRIPTION
  21. .PP
  22. This command doesn't actually exist as part of Tcl, but Tcl will
  23. invoke it if it does exist.
  24. If the Tcl interpreter encounters a command name for which there
  25. is not a defined command, then Tcl checks for the existence of
  26. a command named \fBunknown\fR.
  27. If there is no such command, then the interpreter returns an
  28. error.
  29. If the \fBunknown\fR command exists, then it is invoked with
  30. arguments consisting of the fully-substituted name and arguments
  31. for the original non-existent command.
  32. The \fBunknown\fR command typically does things like searching
  33. through library directories for a command procedure with the name
  34. \fIcmdName\fR, or expanding abbreviated command names to full-length,
  35. or automatically executing unknown commands as sub-processes.
  36. In some cases (such as expanding abbreviations) \fBunknown\fR will
  37. change the original command slightly and then (re-)execute it.
  38. The result of the \fBunknown\fR command is used as the result for
  39. the original non-existent command.
  40.  
  41. .SH KEYWORDS
  42. error, non-existent command
  43.